package com.hd.vue2204.fm.service.impl;

import com.hd.vue2204.fm.entity.Category;
import com.hd.vue2204.fm.entity.Product;
import com.hd.vue2204.fm.entity.ProductImg;
import com.hd.vue2204.fm.mapper.CategoryMapper;
import com.hd.vue2204.fm.service.CategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品分类 服务实现类
 * </p>
 *
 * @author hd
 * @since 2023-04-19
 */
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements CategoryService {
    @Autowired
    CategoryMapper categoryMapper;
    @Override
    public List<Category> getRecommends() {
        return categoryMapper.getRecommends();
    }

    @Override
    public List<Category> getCategory() {
        return categoryMapper.getCategory();
    }

}
